package com.campus.common.message;

import java.io.Serializable;
import java.util.List;

import com.campus.common.vo.BankTransaction;

public class BankResponse implements Serializable {
    private boolean success;
    private String message; // 提示信息
    private double balance; // 当前余额（查询或交易后返回
    private List<BankTransaction> transactions; // 银行流水

    public BankResponse(boolean success, String message, double balance) {
        this.success = success;
        this.message = message;
        this.balance = balance;
    }
    
    public BankResponse(boolean success, String message, double balance, List<BankTransaction> transactions) {
        this.success = success;
        this.message = message;
        this.balance = balance;
        this.transactions = transactions;
    }

    public boolean isSuccess() {
        return success;
    }
    
    public String getMessage() {
        return message;
    }

    public double getBalance() {
        return balance;
    }

	public List<BankTransaction> getTransactions() {
		return transactions;
	}

	public void setTransactions(List<BankTransaction> transactions) {
		this.transactions = transactions;
	}
    
    

}

